package com.hancher.plugin.hrbutton;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;


public class HrSecondarySmallButton extends HrPrimarySmallButton {

    public HrSecondarySmallButton(@NonNull Context context) {
        super(context);
    }

    public HrSecondarySmallButton(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public HrSecondarySmallButton(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    void initHrBackground(boolean clickable) {
        if (clickable) {
            setTextColor(getResources().getColor(R.color.btn_secondary_font_color));
            setBackgroundResource(R.drawable.btn_secondary_radius);
        } else {
            setTextColor(getResources().getColor(R.color.btn_disable_font_color));
            setBackgroundResource(R.drawable.btn_disable_radius);
        }
    }
}
